package com.dpf.api.utills;

import java.util.UUID;

public class UUIDUtil {

    /**
     * 生成不带-的UUID
     *
     * @return 不带-的UUID
     */
    public static String getUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    /**
     * 生成带-的UUID
     *
     * @return 带-的UUID
     */
    public static String getUUIDWithFlag() {
        return UUID.randomUUID().toString();
    }
}